package com.zhisheng.orders.service;

import com.alipay.api.AlipayApiException;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zhisheng.dto.order.OrderDto;
import com.zhisheng.orders.entity.Orders;
import io.seata.core.exception.TransactionException;

import java.util.Map;

/**
 * (Orders)表服务接口
 *
 * @author 全哥
 * @since 2025-02-24 10:35:47
 */
public interface OrdersService extends IService<Orders> {

    Long createOrderId();

    String createOrderAndPay(OrderDto orderDto) throws TransactionException, Exception;

    String toAliPay(Long oid) throws AlipayApiException;

    String callback(Map<String, String> paramsMap) throws AlipayApiException;
}

